<template>
    <div>
        文章列表
        <h2>{{article.title}}</h2>
        <h2>{{article.author}}</h2>
        <div v-html="article.content"></div>
    </div>
</template>

<script>
    import  {getArticle} from "@/api/article"
    export default {
        data(){
            return {
                article:{}
            }
        },
        mounted() {
            
            getArticle().then(res=>{
                this.article= res.data[0]
            })
          
        },
    }
</script>

<style scoped>

</style>